<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  <link rel="stylesheet" href="//at.alicdn.com/t/c/font_3599446_4bycrk3hyyt.css">
  <title>cnode</title>
</head>

<body>
  <div id="app"></div>
  <!-- built files will be auto injected -->

</body>
<script>
  change()
  function change() {
    document.documentElement.style.fontSize = (document.documentElement.clientWidth || document.body.clientWidth) * 100 / 750 + 'px'
    console.log("1rem=" + (document.documentElement.clientWidth || document.body.clientWidth) * 100 / 750 + 'px');
  }
  window.onresize = function () {
    change()
  }
</script>

</html>